package cn.tedu.restaurant.common;


public class JsonResult<T> {

    private int state;
    private String message;
    private T data;

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public JsonResult(int state) {
        super();
        this.state = state;
    }

    public JsonResult() {
        super();
    }
    
    
    public JsonResult(int state, T user) {
         this.state = state;
         this.data = user;
    }

}
